// 引入mock
const  Mock = require('mockjs')
let id = Mock.mock('@id')
console.log(id);
let obj =Mock.mock({
  id:"@id()",//得到随机的id对象
  username:'@cname()',//随机生成中文名字
  date:'@date()',//随机生成日期
  avatar:"@image('10*10','red','#fff','avatar')",
  description:'@paragraph()',//描述
  ip:'@ip()',//ip地址
  email:'@email()'//email地址
})
console.log("obj:",obj);